<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="sub-cat mgt10">
    <span class="parent-name"><?php echo $heading_title; ?></span>
                 <ul  style="height:<?php echo (ceil(count($categories)/4)) * 30; ?>px;" >
                 <?php if ($categories) { ?>
					<?php foreach ($categories as $category) { ?>
      <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
                    <?php } ?>
	             <?php } ?>
                <!--<div class="fix"></div>-->
    </ul>
    <!--<div style="margin-bottom: 10px;"></div>-->
</div>

<!--<div class="fix"></div>-->
<!--end path way-->

<div class="category_description">
<?php echo $description; ?>
</div>



  
  <?php if ($products) { ?>
  
  <div class="boxModule mgt10 clearfix">
	<div class="mod-title-pr">
    	<h1><?php echo $heading_title; ?>

        </h1>
                
            </div>
    <ul class="lst-mainpr">
    	        <?php $i=0;  foreach ($products as $product) { $i++; ?>
				<li <?php if($i%3==0) { ?> style="margin-right:0px; width:242px;" <?php } else { ?> style="margin-right:10px; width:262px;" <?php } ?>>
            <div class="dispImg">
			 <?php if ($product['thumb']) { ?>
     <a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a>
      <?php } ?>
               
               
			 <?php if (!$product['special']) { ?> <?php } else { ?><span class="lbl-sale2"><b><?php echo $product['saving']; ?></b>%</span><?php } ?>
			    
			   
            </div>
            <div class="desImg">
                <h3><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h3>
                
			<?php if ($product['price']) { ?>
				<div class="clearfix">
                     <?php if (!$product['special']) { ?>
					 <span class="fb fs15 clPrice fl"><?php echo $product['price']; ?></span>
					 <?php } else { ?>
         
		  <span class="fb fs15 clPrice fl">
		  <?php echo $product['special']; ?>
		  </span>&nbsp; &nbsp;&nbsp;
		   <span class="cl66 txtout fl no-mg">
		  <?php echo $product['price']; ?>
		  </span> 
		  
          <?php } ?>
                
					
                    <!--<span class="fr  cl66 no-mg">Đã mua: <b class="clPrice fs16">0</b></span>-->
                </div>
				 <?php } ?>
				
				<!--<div style="width:109px; float:right; margin-top: -20px; margin-right:-10px;" class="cart"> <button class="tai-btn" onclick="addToCart('<?php echo $product['product_id']; ?>');"> Mua Hàng </button> </div>-->
            </div>
        </li>
		  <?php } ?>
        </ul>
</div>


<div class="pagination">
<?php echo $pagination; ?>
 
</div>
  <?php } ?>

  
    <?php echo $content_bottom; ?></div>
	
<?php echo $footer; ?>